package com.order.controller;

import com.order.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Slf4j
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/sendOrder")
    @ResponseBody
    public String sendOrder() {
        log.info("sendOrder");
        return orderService.sendOrder();
    }
}
